package com.wcx.application.service.Impl;

import com.wcx.application.domian.CollectionBean;
import com.wcx.application.domian.CollectionBossBean;
import com.wcx.application.mapper.CollectionBossMapper;
import com.wcx.application.mapper.CollectionMapper;
import com.wcx.application.service.CollectionBossService;
import com.wcx.application.service.CollectionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectionBossServiceImpl implements CollectionBossService {
    @Autowired
    CollectionBossMapper collectionBossMapper;


    @Override
    public int insert(String fromId, String jobId) {
        return collectionBossMapper.insert(fromId,jobId);
    }

    @Override
    public int delete(String fromId, String jobId) {
        return collectionBossMapper.delete(fromId,jobId);

    }

    @Override
    public List<CollectionBossBean> search(String fromId, String jobId) {
        return collectionBossMapper.search(fromId,jobId);

    }

    @Override
    public List<CollectionBossBean> list(String fromId) {
        return collectionBossMapper.list(fromId);
    }
}
